<template>
<div class="el-container" style="height:40px;line-height:40px;width:100%;box-shadow: 0 0 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)">
<!--        <i class="el-icon-menu" style="line-height:40px;height:40px;padding:0 10px;"></i>-->
    <span style="font-size:16px;width:100px;text-align:center;">来飞网</span>
    <span style="flex:1 1 auto;"></span>
    <div style="flex: 0 1 auto;padding: 0 10px;">
        <el-button type="text" size="medium" disabled></el-button><el-button type="text" size="medium" @click="logout">退出登录</el-button>
    </div>
</div>
</template>

<script>
    export default {
        methods:{
            logout(){
                this.post('/logout').then(function (response) {
                    window.location.reload();
                }).catch(function (error) {
                    console.log(error);
                });
            },
        }
    }
</script>

<style scoped>

</style>
